<div id="contenidoaddusuario">
    <center>
        <div id="info">Registrar Profesional</div>
        <div id="info">Los campos con (*) son obligatorios.</div><p></p>
    </center>
    <?php echo $this->Form->create('Profesionale'); ?>
    <fieldset>
    <?php
        echo $this->Form->input('User.id');
        echo $this->Form->input('User.username', array("Correo Electronico"));
        if($accion != "Modificar"){
            echo $this->Form->input('User.password');
            echo $this->Form->input('User.password2', array("type"=>"password"));}
        echo $this->Form->input('User.nombres');
        echo $this->Form->input('User.apellidos');
        echo $this->Form->input('User.tipo_identificacion', array('type' => 'select','options' => array(''=>'', 'CC'=>'Cedula de Ciudania','CE'=>'Cedula de Extrangeria','RC'=>'Registro Civil','TI'=>'Tarjeta de Identidad')));
        echo $this->Form->input('User.numero_identificacion',array('type' => 'text'));
        echo $this->Form->input('User.fecha_nacimiento', array('minYear' => 1900, 'maxYear' => date('Y')));
        echo $this->Form->input('User.genero', array('type' => 'select','options' => array(''=>'', 'M'=>'Masculino','F'=>'Femenino')));
        echo $this->Form->input('User.direccion_residencia');
        echo $this->Form->input('User.telefono',array('type' => 'text'));
        echo $this->Form->input('User.tipo',array('type' => 'select', 'options'=> array('1'=>'Profesional')));  
        echo $this->Form->input('id');
        echo $this->Form->input('Profesionale.profesion');
        echo $this->Form->input('Profesionale.especialidad');
        echo $this->Form->input('Profesionale.registro_medico', array('type' => 'text'));
        echo $this->Form->end($accion);
    ?>
</fieldset>
</div>
